/*
 * Lista.h
 *
 *  Created on: Oct 15, 2011
 *      Author: lore
 */
#ifndef LISTA_H_
#define LISTA_H_
#include <string>
#include <sstream>

using namespace std;

class Lista {
public:
	Lista();

	void setIdEleccion(unsigned long ideleccion);
	unsigned long getIdEleccion();

	void setId(unsigned long id);
	unsigned long getId();

	void setNombreLista(string nombrelista);
	string getNombreLista();

	//serializacion
	char* pack();
	unsigned long packLen();
	bool unpack(char* buffer, unsigned long bufferLen);

	virtual ~Lista();

private:
		unsigned long idEleccion;
		string nombreLista;
		unsigned long id;
};

#endif /* LISTA_H_ */
